/*
 * spi.c
 *
 *  Created on: Sep 30, 2010
 *      Author: tron
 */

#include "spi.h"

uint8_t spi_master_write(uint8_t byte){
	SPDR = byte;
	loop_until_bit_is_set(SPSR, SPIF);
	return SPDR;	// return SPDR to receive data.
}
